set -x
rm -rf dist/*

pyinstaller -F --hidden-import comtypes.client --hidden-import yaml --hidden-import filelock -i ico.ico  main.py
pyinstaller -F --hidden-import comtypes.client --hidden-import yaml --hidden-import filelock -i ico.ico  useKey.py
mkdir dist/log
mkdir -p dist/dm
cp dm/*.dll dist/dm/
cp dm/*.txt dist/dm/
mkdir -p dist/conf
cp conf/*.yaml dist/conf/

cp 江湖模拟器使用说明.docx dist/江湖模拟器使用说明.docx
cp 后台开宝箱使用教学.docx dist/后台开宝箱使用教学.
cp 江湖模拟器使用说明.docx dist/江湖模拟器使用说明.docx

cp 更新日志.txt dist/更新日志.txt
cp -r pic dist/pic
mkdir -p dist/screen/debug
mkdir -p dist/screen/error
mkdir -p dist/screen/黄陵
mkdir -p dist/screen/奇遇
mkdir -p dist/screen/武器
mkdir -p dist/screen/书


rm -f main.spec
rm -rf build

#tar -czvf dist.tar.gz dist
#"D:\Program Files\7-Zip\7z.exe" a dist.7z file_to_compress
WinRAR a dist.rar "dist"


